#ifndef _VERTEX_
#define _VERTEX_

/* Creates a simple vector with 3 values, 
 * either xyz or rgb
 */

class vec3
{
public:
	//Constructors
	vec3();
	vec3(float, float, float);

	//Variables (either xyz, or rgb)
	union {float x, r;};
	union {float y, g;};
	union {float z, b;};
};

//Operators
vec3 operator +(const vec3 &a, const vec3 &b);
vec3 operator -(const vec3 &a, const vec3 &b);
vec3 operator *(const vec3 &v, float s);

#endif
